Refactoring - runLinear() in linearSim

Removed conditional part of the if statement from the previous commit
as it occurs immediately after having set oldEnergy = 0.