start refactoring
factor out move left
plod on with refactoring
continue refactoring
note todo