Altered pathfinding to move right next to a mechanic object. Added more safeguards to movement.