Added main game loop and exit command