Added try/except blocks to user input statements requiring integer input