No matter what maxteams equals the loop will never end. It's exactly like this one:
PHP Code:
new a=0
while(a != 1 || a != 2)
{
a++
}
Try checking conditions in few iterations and you will understand (if you have basic programming knowledge).
__________________