The game will explain the rules. Apparently there is a glitch that I cannot find to fix an ending. Sorry about that.
Thanks to a Scratch book for the idea.