common loops

commit: game of life lab final has my final code in it.