updated grid class for use with game of life