implemented cell moving