Solver can now calculate all moves. Example is in test.java