public void resize(int x, int y){
	Patch[][] newGrid = new Patch[y][x];
	for (int i = 0; i<y; i++){
	    for (int j = 0; j<x; j++){
		if (i<getHeight() && j<getWidth()){
		    newGrid[i][j] = _grid[i][j];
		}
		else
		    newGrid[i][j] = new Patch(this, j, i);
	    }
	}
	_grid = newGrid;
    }