game end fixed