finalized the walking functionality for metroidman