public BoardPiece getPlayerKing(String playerColor) throws Exception{
		
		for (int i=0; i<boardSquares.length; i++){
			for (int j=0; j<boardSquares[i].length; j++){
				BoardPiece boardPiece = boardSquares[i][j].getBoardPiece();
				if (boardPiece != null){
					if (boardPiece.pieceColor.equals(playerColor) && boardPiece.pieceType.equals(BoardPiece.TYPE_KING)){
						return boardPiece;
					}
				}
			}
		}
		
		throw new Exception();
	}