add check for game over in game.rb