CustomGame.ClickOption(GameOption option);
Syntax
public void ClickOption(
    GameOption option
)

option
Option to click.
Type: CustomGameOW.GameOption

Changes game state.
GameOption.Start: Starts game while in lobby.
GameOption.BackToLobby: Goes back to lobby while waiting for players or ingame.
GameOption.Restart: Restarts game while waiting for players or ingame.
GameOption.StartGamemode: Starts gamemode when waiting for players.

The example below will wait for enough players to join then start the game.

using System;
using CustomGameOW;

...

static void Main(string[] args)
{
    CustomGame cg = new CustomGame();

    int minimumRequiredPlayers = 8; // Minimum required players

    while(true)
    {
        // Start game when enough players join.
        int playercount = cg.playercount; // Minimum required players

        if (playercount >= minimumRequiredPlayers)
        {
            cg.ClickOption(GameOption.StartGamemode);
        }
    }
}