Added a Function that makes the player take damage

Added a function that makes the player take damage and grant him some
invulnerability time.
Made the basic enemies hurt the player when he touches them.