created some variables in updateGameState to shorten access