The instructions are explained in the game.
This game took me around five or six hours to make, a lot of that spent just on level four. Enjoy!