added energy check before subtracting from rxn queue