Sliding Puzzle (OCaml)