Try_Catch statement for determineCommand()

Included a try_catch statement for determineCommand() so if a letter is
entered it won't bug out.