add collision detection

OnCollisionEnter2D was added so that the player can now collide with an enemy and both should be damaged.