Define iterateSolutions
Define main function and IO
Ignore unique possibility in positionWithLeastPossibilities