created 3 main game states: start, run game, and end