Moved scanner helper/boolean functions from Assignment2 to
helpers/ScannerHelpers.java.