Fixed placing on Z

There was a bug were the program incorrectly placed blocks on the Z axis