Some code to move around sensibly, hopefully avoiding walls etc.

...aking decisions on where to move.