working prototype before trying to add in playAgain button function as branch
final production version