added collision detection between the player and enemies