Added game loop to prevent the redraw issue