Fixed all pathfinding, but there seems to be problem in setting 'mx' & 'my'