using search algos to solve the puzzle game problem