Added damage invincibility

The player now flashes and is briefly invincible after taking damage.
Knockback is now also directional depending on which side the player
collided with the enemy.