Fixed Natives and created the game loop