@Override
	public void initializeBoard(PieceLocationPair[] initialPieces) {
		gameboard.clear();
		for(PieceLocationPair pair : initialPieces) {
			BasicHantoPiece piece = new BasicHantoPiece(pair.pieceType, pair.player);
			BasicCoordinate location = new BasicCoordinate(pair.location);
			gameboard.put(location.getkey(), piece);
			
			if(piece.getType().equals(HantoPieceType.BUTTERFLY)) {
				if(piece.getColor().equals(HantoPlayerColor.RED)) {
					redfly = location;
				}
				else if(piece.getColor().equals(HantoPlayerColor.BLUE)) {
					bluefly = location;
				}
			}
			else if(piece.getType().equals(HantoPieceType.SPARROW)) {
				if(piece.getColor().equals(HantoPlayerColor.RED)) {
					redSparrowCount--;
				}
				else if(piece.getColor().equals(HantoPlayerColor.BLUE)) {
					blueSparrowCount--;
				}
			}
		}
	}