private int Weight( IGrid<Player> board, Vector2D p ) { if ( board.InCorner( p ) ) { return cornerWeight; } else if ( board.OnRim( p ) ) { return rimWeight; } else { return 1; } }