Created error handling function for user input and created numTop variable allowing the top limit of the game to be changed easily