First version, working out how the man would move...


Refined version!