almost done with energy from top to bottom

gives error, fix it...
here it still works, for more columns it fails...