01.07.2017, 14:56
"TeamACount" never actually changes value within the loop body and as such the loop runs forever. A while-loop runs until the expression evaluates to false. What you want to use here is likely just a simple if-statement because I see no reason to use a loop at all.