FINALLY made the apthfinding work properly, read and diapair the mosnter update code