function onStopGame() { if (!self::$played) { return false; } self::$played = false; self::showLobby(true); }