program now resets on lose