Changed gameloop