private List <Move> GetThreatMoves(Vector2 position, Board.Board board) { var data = board.GetPieceData(position); if (data == null) { return(new List <Move>()); } var type = data.Type; return(_movesets[type].GetFightingMoves(position, board)); }