Famous 8 Puzzle Problem Implementation