gameLoop() working