class for game grid