Puzzle game solver