fixed game loop display method