game state added

There is now a basic state machine for controlling the flow of the game
"script".