A simple game of life for java course project