The function placeRandom choses random coordinates for each player.
If the chosen position was too close to another player, it will try different coordinates repeatedly.
If the previous player positions already covered the entire map so that finding such a position can't work,
it will thus end up in an infinite loop.
_kali already identified this issue and added an infinite loop detection,
but messed it up as it resets the attempt counter to 0 with each new attempt.