Basic grid game in command line and GUI versions