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 independent game to act in, 1 or 2; the games advance in parallel
side: Your color on this game, 1 for Black and 2 for White; colors swap between games
ply: The number of stones already placed on this game only
myScore: Your total territory score from completed games
opponentScore: Your opponent's total territory score from completed games
row: One row of the 16 by 16 board, using B for Black, W for White and . for empty
legalActionCount: The number of legal actions available this turn
action: A legal row-major action index

OUTPUT
One integer action in [0, 255], where action = row * 16 + column
