Simplified generation code

Track max and min generation values
Increment generations

Minor addition to actually increment the generations