Fix double-energy-spending bug in life simulation