Understand the Match Details object structure
masterThe matchDetails object is the primary state container passed between all engine functions.
Key Fields:
kickOffTeam/secondTeam: Objects containing team metadata and player arrays.pitchSize: Array[width, height].ball: Containsposition[x, y, z],withPlayer(boolean),direction, andlastTouchdetails.ball.ballOverIterations: An array used to track ball movement over time. If empty, no new ball movements occur.half: Current half number.kickOffTeamStatistics/secondTeamStatistics: Objects trackinggoals,shots,corners,freekicks,penalties, andfouls.iterationLog: An array of strings providing a summary of events in the last iteration.