moved move function to UnitController