Updated traversal and replaced squareWithMostUnknowns with squareWithLeastUnknowns. Added function specifications and some test cases

Oskar & Erik. 3 hours.