AI 8-Puzzle Assignment