Fixed under_attack and movegen bugs