rewriting local energy

already done with 'middle' part of bottom to top

next is top row

then right to left. Should be possible to finish tomorrow!