completed animation code
added collision detection for stage 1