script for showing the game in the terminal
supporting diagonal neighbors