Created explosion animation. Also refactored the code.