make it work again
in replaceFlagIfPlayerAlive, remove old flag even if NULL passed
for new flag (end of game)