added some functions, but the cubes used in the pyramid are models, not cubes