Added error handling of non-integer inputs at the main menu