game of life with gui in java