add RandomAI class

Other changes:
* access by $brd[x][y] in place of $brd[y][x]