gameloop
read gameId:int side:int ply:int myScore:int opponentScore:int
loop 16 read row:string(16)
read legalActionCount:int
loop legalActionCount read action:int
write action

STATEMENT
Win a fair two-game match by accumulating more territory across both color-swapped games.

INPUT
gameId: The board to act on this turn, 1 or 2; the two games advance in parallel
side: Your color on this board, 1 for Black and 2 for White; read it each turn
ply: The number of stones already placed on this board
myScore: Your total territory score from completed games
opponentScore: Your opponent's total territory score from completed games
row: One board row of exactly 16 characters: B for Black, W for White, . for empty
legalActionCount: An integer giving the number of legal placements on this board this turn
action: One integer legal cell index, numbered 0 to 255 from left to right, top to bottom

OUTPUT
Output one line containing a single integer action from the supplied list of legal actions
