moved checking for win/loss conditions to not be immediately after attacks.