public function initializeGame() { if ($this->in_progress == 0) { DB::table('Matches')->where('id', $this->id)->update(['in_progress' => 1]); Matches::chooseFirstTurn($this->id); $match_players = $this->getMatchPlayers(); PlayField::loadGameMogs($this->id, $match_players); } }