Instructions are in the game. I won't give away too much because it is a puzzle game.
Thanks to Chennai94 for testing out the code and helping me with the bugs.