public CGameObject collidesRect(CGameObject aGameObject) { for (int i = mArray.Count - 1; i >= 0; i--) { if (aGameObject.collidesRect(mArray[i])) { return(mArray[i]); } } return(null); }