implemented addSprite method to sprite manager to ensure that sprites do not exceed limit and that no duplicate IDs are inserted.