Slightly altered gameLoop