code: function getNearPositions(board, position) {
      var nearPositions = _getNearPositions(getBoardSize(board), Position.getXAndY(position));
      return getPositionsFromBoard(board, nearPositions);
  }
docs: Get all near positions from the given board instance.