Refactor symbol map setup
Move stuff out of loop
Fix absence of multiplication
Factor out handling the user input