gameLoop for iOS