Added variables to indicate the number of rows and columns in the board