small simplification in Sprite.hitTestInput