minor gameloop fixes