Implemented revert sprite logic in SDLGameObject