Create Sprite type and define main game loop