private void ImplementBoardLayout() { for (int i = 0; i < initialBoardLayout.GetNumberOfPieces(); i++) { Vector2Int squareIndex = initialBoardLayout.GetChessPieceSquareIndex(i); PieceType pieceType = initialBoardLayout.GetChessPieceType(i); TeamColor teamColor = initialBoardLayout.GetChessPieceTeamColor(i); CreatePiecePrefabAndInitialize(squareIndex, pieceType, teamColor, Board.ChessGrid, GetChessPlayerFromTeam(teamColor)); } }