implemented doMove and test for it