Graphics integrated into main game loop