A simple game of life in JAVA