public Board boardEquiv() {

		Board b = new Board();

		for (int x = 0; x < 8; x++) {
			for (int y = 0; y < 8; y++) {
				DerpyPiece p = arr[x][y];
				boolean pieceColor = p.getColor();
				Piece db = null;
				if (p instanceof DerpyBishop) {
					db = new Bishop(pieceColor);
				} else if (p instanceof DerpyBlank) {
					db = new Blank(true);
				} else if (p instanceof DerpyKing) {
					db = new King(pieceColor);
				} else if (p instanceof DerpyKnight) {
					db = new Knight(pieceColor);
				} else if (p instanceof DerpyPawn) {
					db = new Pawn(pieceColor);
				} else if (p instanceof DerpyQueen) {
					db = new Queen(pieceColor);
				} else if (p instanceof DerpyRook) {
					db = new Rook(pieceColor);
				} else {
					System.out.println("boardEquiv did something dumb.");
				}
				b.getBoardArray()[x][y] = db;

			}
		}
		return b;

	}