gameLoop works
gameLoop refactor