var changes, code simplification

DRY if/else statements. Created arrays for variables to input into prompt and comparisons.