gameLoop creation