Heuristics, Answer Set Programming and Markov Decision Process for Solving a Set of Spatial Puzzles