gouraudShade refactored
createSprite refactored
animate refactored