Fixed bug on builder and attacker loop