fixed z-index issues when the enemy played