// Called when the node enters the scene tree for the first time. public override void _Ready() { boardUI = GetNode <BoardUI>("BoardUI"); moveSound = GetNode <AudioStreamPlayer>("MoveSound"); captureSound = GetNode <AudioStreamPlayer>("CaptureSound"); board = new Board(); aI = new AI(depth); legalMoves = new List <Move>(); board.CreateBoard(); boardUI.CreateBoardUI(board); }