private int FindSprite(int ID) { for (int i = 0; i < size; i++) if (IDList[i] == ID) return i; //not found return -1 return -1; }