change output file to add .out extension
implemented play again