Added validation to addSprite method. #15