Task 2

Currently the program will reject the user entering Q or Quit for
instance. Improve this function so all of these values are recognised as
being equivalent to q.