changed "scanner" to "inputScanner"
refactored switch, introduced new method: "takeActionBasedOnCommand"
refactored, introduced new method: "checkValidRouteLocation"