Solve wrong variable handling of energy.

Energy entry is now also a normal value, not a constant.
It is working now!