state space searching program that solves a puzzle game