package homeproblem2;

import java.util.Random;

public class Grid {

	final int row;
	final int col;
	public static Random rand = new Random();
	public static Object[][] grid;

	public Grid(int row, int col) {
		this.row = row;
		this.col = col;
		grid = new Object[row][col];
	}

	public static Object[][] addPlayers(int row, int col) {
		int k = 0;
		for (int i = 0; i < row; i++) {
			for (int j = 0; j < col; j++) {
				k = rand.nextInt(8);
				Player p = new Player(i, j, 0, k);
				grid[i][j] = p;
				System.out.println(p);
			}
		}
		return grid;
	}

	public void getPlayers(Object[][] grid) {
		for (int i = 0; i < row; i++) {
			for (int j = 0; j < col; j++) {
				System.out.print(grid[i][j] + " ");
			}
			System.out.println();
		}

	}

}

@@ -271,16 +271,38 @@
 %5D%5Bcol%5D;%0A
+%09%09addPlayer(row,col);%0A
 %09%7D%0A%0A%09pub

Test change