Couldn't figure how to win this, but this is a really good concept and a really neat game ! Nice pixel art !
You sort of can't win it. You just go to the topmost room and see "Thanks for playing!" text. Don't blame me, my brother did the level design ;-)