made the game functional