got the game set up to handle different states