Added movement path diagonal function