Sliding Logic

Fifteen Puzzle

Rebuild the ordered board by sliding one tile at a time into the empty slot and shrinking the remaining distance.