Solving the 8-puzzle with some basic AI