Code restructuration Player/Spriter