cleaned up code, score added, game_end() function added, game and states added