private void checkSpriteCollisions(ArrayList<ArrayList<Sprite>> spriteLists)
    {
        for (ArrayList<Sprite> spriteList : spriteLists)
        {
            int startIndex = spriteList.indexOf(this) + 1;
            for (int i = startIndex; i < spriteList.size(); i++)
            {
                if (intersects(spriteList.get(i)))
                {
                    resolveCollision(spriteList.get(i));
                }
            }
        }
    }