Added the Grid class and updated the main game file to demonstrate its
use.