#include <stdio.h>
#include <string.h>
#define MAX_GRID 100
int num_rows, num_cols;
char grid[MAX_GRID][MAX_GRID];
char new_grid[MAX_GRID][MAX_GRID];
int num_words;
int len_words[MAX_GRID];
char words[MAX_GRID][MAX_GRID];
// Find a word that fits in this row
// row and col give the position of the 'r' that starts the word
// Return 1 if we found a match or 0 if there is no match
int find_row(int row, int col)
{
printf("Debug: find_row(%d, %d)\n", row, col);
// Find the 'r' that ends the word