renamed square pyramid function

that was incredibly stupid of me