Changed if statement in Scanner to if/else to