Lock Puzzle Solver (A*)