move logic working