fixed the draw order of the game