Solves the 8 square sliding puzzle