fixed the move box bug to pass the test case CAP116