slight rework in main function

Added stand up loop