repaint only current window
repaint only current window
repaint only current window
repaint only current window
game loop and tick method