game of life: add graphmode option

The --graphmode option enables the user to choose between SDL graphical
interface and the terminal to display the patterns.