Choose which magic to improve as you meet the kingdom's ledges and traps. Blocks and bubbles become tools for a particular route, and a later upgrade often gives you a second option through a room.