code: async function initiateGame(team1, team2, pitchDetails) {
    validate.validateArguments(team1, team2, pitchDetails)
    validate.validateTeam(team1)
    validate.validateTeam(team2)
    validate.validatePitch(pitchDetails)
    let matchDetails = setVariables.populateMatchDetails(team1, team2, pitchDetails)
    let kickOffTeam = setVariables.setGameVariables(matchDetails.kickOffTeam)
    let secondTeam = setVariables.setGameVariables(matchDetails.secondTeam)
    kickOffTeam = setVariables.koDecider(kickOffTeam, matchDetails)
    matchDetails.iterationLog.push(`Team to kick off - ${kickOffTeam.name}`)
    matchDetails.iterationLog.push(`Second team - ${secondTeam.name}`)
    secondTeam = setPositions.switchSide(secondTeam, matchDetails)
    matchDetails.kickOffTeam = kickOffTeam
    matchDetails.secondTeam = secondTeam
    return matchDetails
  }
docs: ------------------------ Functions ------------------------