read playerID:int
gameloop
read myScore:int opponentScore:int
loop 9 read row:string(9)
read fx:int fy:int lx:int ly:int dir:int 
read legalActionsCount:int
loop legalActionsCount read fx:int fy:int lx:int ly:int dir:int 
write move

OUTPUT
<firstBallX> <firstBallY> <lastBallX> <lastBallY> <direction>