first attempt at 3D. thanks to @MathMathMath for the some of the code, but i figured out how to duplicate squares and create triangles by myself though sadly, i still cannot create a 3D game out of this, because if u go past the blocks it makes everything turn upside down.