Functional hurt animation added

The player and enemy class should both react to damage now. The
animation is still a little bit glitchy but it shouldn't be noticeable.
Linear impulse should be applied to add the effect of being hit.