implement moveToRight