generate the game grid with canvas