public ChessPiece selfCheck(BoardSquare[][] squares, int rows, int columns){
		for(int i=0; i < rows; i++){
			for(int j=0; j < columns; j++){
				if(squares[i][j].getPlayer() != -1 && squares[i][j].getPlayer() != getPlayer()){ // if piece on current square is opponent to the king passed in
					if(squares[i][j].getPiece().checkAttackingKing(getRow(), getColumn(), squares) == true){ // checks if that piece on that sq can attack King
						return squares[i][j].getPiece();
					}
				}
			}
		}
		return null;
	}