CGTXUBZEQ3JIDHM7MY5JDL5LB43L2QECXRS6W3RLTRIVCZTHH4IAC
// TODO: Select a new first player. In minigame 1 it's player_no 1,
// minigame 2 player_no 2 etc.
$this->activeNextPlayer();
// Select a new first player. In minigame 1 it's player_no 1, in
// minigame 2 player_no 2 etc.; using module to cover the 'more rounds
// than players' case.
$next_player_no = ((self::getGameStateValue("minigame") - 1) % count($players)) + 1;
$next_player_id = self::getUniqueValueFromDB("SELECT player_id FROM player WHERE player_no = $next_player_no");
$this->gamestate->changeActivePlayer($next_player_id);