can only move cardinally when z is 0