AI (Artificial Intelligence) that solves 8-puzzle