added last instruction, so the game can now be played, and added various debugging functions