another local commit - untested code

just a commit to save my own work. Working on the pyramid code. Not to
be pushed until a future commit makes it work again.
Duplicate and delete work now, and pyramids can be drawn now.