Broke out the random attacks into a separate method, randomAttack().
Equalize with rest for debugging.
Merge conflicts