added what i think is a correct cartesian algorithm based on subbing in
x and z in combos of 50 and - 50