Added main game loop