Decided against using a global variable for user_input becuase it was very confusing as to where that input was coming from or when it was being set