Fixed the order of rendering for game over