The puzzle has nothing to do with the actual gym floor but it opens the secret door that leads to Corey, once you talk to him he moves to the battle room
tbh, I really can never train a ghost and i have a tough time against them
as for drawing, i believe i asked a few months back to draw me an octopus style pokemon with punching gloves ._.