Fixed null reference after a game ends