We have a game we are writing in PHP and we need it to loop through each player and allow them to make their move. The problem we are having is that PHP will loop through the `for` and `while` loop upon page load and not let each player do their turn.

Actually right now it is in an infinite loop since it never evaluates to true because it doesn't let them make their turn. It should stop and let each player `moveHere()`. `activePlayer` enables the game board for each player and once `moveHere` executes properly, it will set `$turnOver` to true. However, the loop never pauses and infinitely loops.

See this code snippet:

```
for ($i=1; $i<=$characterCount; $i++)
{
    activatePlayer($i);

    while (!$turnOver){
        moveHere();
    }
}

```