title: refer to same object
body: <p>How can I set the locations based on the board below? Thanks</p>
  
  <pre><code>let initialState = {
    board: [
      [-1, 1, -1, 1, -1, 1, -1, 1],
      [1, -1, 1, -1, 1, -1, 1, -1],
      [-1, 1, -1, 1, -1, 1, -1, 1],
      [0, -1, 0, -1, 0, -1, 0, -1],
      [-1, 0, -1, 0, -1, 0, -1, 0],
      [2, -1, 2, -1, 2, -1, 2, -1],
      [-1, 2, -1, 2, -1, 2, -1, 2],
      [2, -1, 2, -1, 2, -1, 2, -1]
    ],
    locations: calcLocations(self.board)
  };
  </code></pre>
  
  <p>it doesn't recognize self.board...</p>