That was quite a puzzle to solve. I don't know how I would make the game loop work for more stages. Very creative.