State machine for moving sheep