public MatchInfo checkMatches(GameObject obj) { MatchInfo info = new MatchInfo(); List<GameObject> horizontal = (List<GameObject>)checkMatchesHorizontal(obj); info.addRange(horizontal); List<GameObject> vertical = (List<GameObject>)checkMatchesVertical(obj); info.addRange(vertical); return info; }