Checking for enemies by layer rather than by name