Update gameoflife.py

simplified verifying input.