When created or added into world, choose one of the four directions at random and also choose a random distance to move from one to the distance to the edge it will be moving toward. These two choices will need to be maintained in fields to be used each act step. During each act step: set rotation to direction, move and decrease the distance needed to travel and reset rotation back to zero; then, check if the distance left to travel is zero or not -- if so, choose a new direction and distance (the change in direction can be limited to a simple left or right turn, if desired).