public boolean sameColor(Point position, int color) {
		
		if (!validPoint(position)) {
			return false;
		}
		
		int x = position.getRow();
		int y = position.getCol();
		
		return grid[x][y].getPieceColor() == color;
	}