Prolog for 36 Cube Puzzle