Added thread functionality to life.c. TODO: Added premature exit if generations do not proceed further.