Checks if the user had put in a valid guess
Added comments and made better spacing