Java swing gui for game of life