Improved ending animation code with my color alpha extension