Fixed error occurring when user inputs string or char instead of int when asking for a command.