stuck on out of bounds error on attack phase when calculating winner