Start of coding of puzzle solver.