made enemy code work