Fixed parent selection function, it now optimizes properly. It also showed me I forgo to cap attack speed and crit chance, so I fixed that