{"action":"created","comment":{"url":"https://api.github.com/repos/Droogans/match-three-js/pulls/comments/58627203","id":58627203,"diff_hunk":"@@ -284,6 +284,18 @@ export class Board {\n         return hasWideStyleMatch || _.some(_.map(chunks), hasMatchInPairOfRows);\n     }\n \n+    swap(swapOrbs) {\n+        let [[x1, y1], [x2, y2]] = swapOrbs;\n+        let orbsBefore = _.cloneDeep(this.orbs);","path":"babel/src/board.js","position":171,"original_position":6,"commit_id":"4af9686a604500d5524fb1398097c22cafb1ef49","original_commit_id":"4af9686a604500d5524fb1398097c22cafb1ef49","user":{"login":"rbcasperson","id":15185836,"avatar_url":"https://avatars.githubusercontent.com/u/15185836?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcasperson","html_url":"https://github.com/rbcasperson","followers_url":"https://api.github.com/users/rbcasperson/followers","following_url":"https://api.github.com/users/rbcasperson/following{/other_user}","gists_url":"https://api.github.com/users/rbcasperson/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcasperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcasperson/subscriptions","organizations_url":"https://api.github.com/users/rbcasperson/orgs","repos_url":"https://api.github.com/users/rbcasperson/repos","events_url":"https://api.github.com/users/rbcasperson/events{/privacy}","received_events_url":"https://api.github.com/users/rbcasperson/received_events","type":"User","site_admin":false},"body":"This `_.cloneDeep()` brought up a new lesson for me. Confirmed [here](http://stackoverflow.com/questions/2612802/how-to-clone-or-copy-a-list-in-python), I realized that just copying something with an assignment and then changing that copy will change both the copy and the original. ","created_at":"2016-04-05T22:50:30Z","updated_at":"2016-04-05T22:50:30Z","html_url":"https://github.com/Droogans/match-three-js/pull/11#discussion_r58627203","pull_request_url":"https://api.github.com/repos/Droogans/match-three-js/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/Droogans/match-three-js/pulls/comments/58627203"},"html":{"href":"https://github.com/Droogans/match-three-js/pull/11#discussion_r58627203"},"pull_request":{"href":"https://api.github.com/repos/Droogans/match-three-js/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/Droogans/match-three-js/pulls/11","id":64406432,"html_url":"https://github.com/Droogans/match-three-js/pull/11","diff_url":"https://github.com/Droogans/match-three-js/pull/11.diff","patch_url":"https://github.com/Droogans/match-three-js/pull/11.patch","issue_url":"https://api.github.com/repos/Droogans/match-three-js/issues/11","number":11,"state":"open","locked":false,"title":"Find matches redo","user":{"login":"rbcasperson","id":15185836,"avatar_url":"https://avatars.githubusercontent.com/u/15185836?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcasperson","html_url":"https://github.com/rbcasperson","followers_url":"https://api.github.com/users/rbcasperson/followers","following_url":"https://api.github.com/users/rbcasperson/following{/other_user}","gists_url":"https://api.github.com/users/rbcasperson/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcasperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcasperson/subscriptions","organizations_url":"https://api.github.com/users/rbcasperson/orgs","repos_url":"https://api.github.com/users/rbcasperson/repos","events_url":"https://api.github.com/users/rbcasperson/events{/privacy}","received_events_url":"https://api.github.com/users/rbcasperson/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-29T02:45:34Z","updated_at":"2016-04-05T22:50:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cd55e1f4a181c62bc2a2729b528933535f623a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Droogans/match-three-js/pulls/11/commits","review_comments_url":"https://api.github.com/repos/Droogans/match-three-js/pulls/11/comments","review_comment_url":"https://api.github.com/repos/Droogans/match-three-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Droogans/match-three-js/issues/11/comments","statuses_url":"https://api.github.com/repos/Droogans/match-three-js/statuses/4af9686a604500d5524fb1398097c22cafb1ef49","head":{"label":"rbcasperson:findMatches-redo","ref":"findMatches-redo","sha":"4af9686a604500d5524fb1398097c22cafb1ef49","user":{"login":"rbcasperson","id":15185836,"avatar_url":"https://avatars.githubusercontent.com/u/15185836?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcasperson","html_url":"https://github.com/rbcasperson","followers_url":"https://api.github.com/users/rbcasperson/followers","following_url":"https://api.github.com/users/rbcasperson/following{/other_user}","gists_url":"https://api.github.com/users/rbcasperson/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcasperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcasperson/subscriptions","organizations_url":"https://api.github.com/users/rbcasperson/orgs","repos_url":"https://api.github.com/users/rbcasperson/repos","events_url":"https://api.github.com/users/rbcasperson/events{/privacy}","received_events_url":"https://api.github.com/users/rbcasperson/received_events","type":"User","site_admin":false},"repo":{"id":53702926,"name":"match-three-js","full_name":"rbcasperson/match-three-js","owner":{"login":"rbcasperson","id":15185836,"avatar_url":"https://avatars.githubusercontent.com/u/15185836?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcasperson","html_url":"https://github.com/rbcasperson","followers_url":"https://api.github.com/users/rbcasperson/followers","following_url":"https://api.github.com/users/rbcasperson/following{/other_user}","gists_url":"https://api.github.com/users/rbcasperson/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcasperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcasperson/subscriptions","organizations_url":"https://api.github.com/users/rbcasperson/orgs","repos_url":"https://api.github.com/users/rbcasperson/repos","events_url":"https://api.github.com/users/rbcasperson/events{/privacy}","received_events_url":"https://api.github.com/users/rbcasperson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rbcasperson/match-three-js","description":"Basic logic for implementing a match three game.","fork":true,"url":"https://api.github.com/repos/rbcasperson/match-three-js","forks_url":"https://api.github.com/repos/rbcasperson/match-three-js/forks","keys_url":"https://api.github.com/repos/rbcasperson/match-three-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rbcasperson/match-three-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rbcasperson/match-three-js/teams","hooks_url":"https://api.github.com/repos/rbcasperson/match-three-js/hooks","issue_events_url":"https://api.github.com/repos/rbcasperson/match-three-js/issues/events{/number}","events_url":"https://api.github.com/repos/rbcasperson/match-three-js/events","assignees_url":"https://api.github.com/repos/rbcasperson/match-three-js/assignees{/user}","branches_url":"https://api.github.com/repos/rbcasperson/match-three-js/branches{/branch}","tags_url":"https://api.github.com/repos/rbcasperson/match-three-js/tags","blobs_url":"https://api.github.com/repos/rbcasperson/match-three-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rbcasperson/match-three-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rbcasperson/match-three-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/rbcasperson/match-three-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rbcasperson/match-three-js/statuses/{sha}","languages_url":"https://api.github.com/repos/rbcasperson/match-three-js/languages","stargazers_url":"https://api.github.com/repos/rbcasperson/match-three-js/stargazers","contributors_url":"https://api.github.com/repos/rbcasperson/match-three-js/contributors","subscribers_url":"https://api.github.com/repos/rbcasperson/match-three-js/subscribers","subscription_url":"https://api.github.com/repos/rbcasperson/match-three-js/subscription","commits_url":"https://api.github.com/repos/rbcasperson/match-three-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/rbcasperson/match-three-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/rbcasperson/match-three-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/rbcasperson/match-three-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/rbcasperson/match-three-js/contents/{+path}","compare_url":"https://api.github.com/repos/rbcasperson/match-three-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rbcasperson/match-three-js/merges","archive_url":"https://api.github.com/repos/rbcasperson/match-three-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rbcasperson/match-three-js/downloads","issues_url":"https://api.github.com/repos/rbcasperson/match-three-js/issues{/number}","pulls_url":"https://api.github.com/repos/rbcasperson/match-three-js/pulls{/number}","milestones_url":"https://api.github.com/repos/rbcasperson/match-three-js/milestones{/number}","notifications_url":"https://api.github.com/repos/rbcasperson/match-three-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rbcasperson/match-three-js/labels{/name}","releases_url":"https://api.github.com/repos/rbcasperson/match-three-js/releases{/id}","deployments_url":"https://api.github.com/repos/rbcasperson/match-three-js/deployments","created_at":"2016-03-11T23:28:15Z","updated_at":"2016-03-11T23:28:16Z","pushed_at":"2016-04-05T22:25:24Z","git_url":"git://github.com/rbcasperson/match-three-js.git","ssh_url":"git@github.com:rbcasperson/match-three-js.git","clone_url":"https://github.com/rbcasperson/match-three-js.git","svn_url":"https://github.com/rbcasperson/match-three-js","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Droogans:master","ref":"master","sha":"295959a01f7874594c6d9e0414ecee36c1ee09cd","user":{"login":"Droogans","id":1214609,"avatar_url":"https://avatars.githubusercontent.com/u/1214609?v=3","gravatar_id":"","url":"https://api.github.com/users/Droogans","html_url":"https://github.com/Droogans","followers_url":"https://api.github.com/users/Droogans/followers","following_url":"https://api.github.com/users/Droogans/following{/other_user}","gists_url":"https://api.github.com/users/Droogans/gists{/gist_id}","starred_url":"https://api.github.com/users/Droogans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Droogans/subscriptions","organizations_url":"https://api.github.com/users/Droogans/orgs","repos_url":"https://api.github.com/users/Droogans/repos","events_url":"https://api.github.com/users/Droogans/events{/privacy}","received_events_url":"https://api.github.com/users/Droogans/received_events","type":"User","site_admin":false},"repo":{"id":53109183,"name":"match-three-js","full_name":"Droogans/match-three-js","owner":{"login":"Droogans","id":1214609,"avatar_url":"https://avatars.githubusercontent.com/u/1214609?v=3","gravatar_id":"","url":"https://api.github.com/users/Droogans","html_url":"https://github.com/Droogans","followers_url":"https://api.github.com/users/Droogans/followers","following_url":"https://api.github.com/users/Droogans/following{/other_user}","gists_url":"https://api.github.com/users/Droogans/gists{/gist_id}","starred_url":"https://api.github.com/users/Droogans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Droogans/subscriptions","organizations_url":"https://api.github.com/users/Droogans/orgs","repos_url":"https://api.github.com/users/Droogans/repos","events_url":"https://api.github.com/users/Droogans/events{/privacy}","received_events_url":"https://api.github.com/users/Droogans/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Droogans/match-three-js","description":"Basic logic for implementing a match three game.","fork":false,"url":"https://api.github.com/repos/Droogans/match-three-js","forks_url":"https://api.github.com/repos/Droogans/match-three-js/forks","keys_url":"https://api.github.com/repos/Droogans/match-three-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Droogans/match-three-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Droogans/match-three-js/teams","hooks_url":"https://api.github.com/repos/Droogans/match-three-js/hooks","issue_events_url":"https://api.github.com/repos/Droogans/match-three-js/issues/events{/number}","events_url":"https://api.github.com/repos/Droogans/match-three-js/events","assignees_url":"https://api.github.com/repos/Droogans/match-three-js/assignees{/user}","branches_url":"https://api.github.com/repos/Droogans/match-three-js/branches{/branch}","tags_url":"https://api.github.com/repos/Droogans/match-three-js/tags","blobs_url":"https://api.github.com/repos/Droogans/match-three-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Droogans/match-three-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Droogans/match-three-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Droogans/match-three-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Droogans/match-three-js/statuses/{sha}","languages_url":"https://api.github.com/repos/Droogans/match-three-js/languages","stargazers_url":"https://api.github.com/repos/Droogans/match-three-js/stargazers","contributors_url":"https://api.github.com/repos/Droogans/match-three-js/contributors","subscribers_url":"https://api.github.com/repos/Droogans/match-three-js/subscribers","subscription_url":"https://api.github.com/repos/Droogans/match-three-js/subscription","commits_url":"https://api.github.com/repos/Droogans/match-three-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Droogans/match-three-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Droogans/match-three-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Droogans/match-three-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Droogans/match-three-js/contents/{+path}","compare_url":"https://api.github.com/repos/Droogans/match-three-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Droogans/match-three-js/merges","archive_url":"https://api.github.com/repos/Droogans/match-three-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Droogans/match-three-js/downloads","issues_url":"https://api.github.com/repos/Droogans/match-three-js/issues{/number}","pulls_url":"https://api.github.com/repos/Droogans/match-three-js/pulls{/number}","milestones_url":"https://api.github.com/repos/Droogans/match-three-js/milestones{/number}","notifications_url":"https://api.github.com/repos/Droogans/match-three-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Droogans/match-three-js/labels{/name}","releases_url":"https://api.github.com/repos/Droogans/match-three-js/releases{/id}","deployments_url":"https://api.github.com/repos/Droogans/match-three-js/deployments","created_at":"2016-03-04T05:12:25Z","updated_at":"2016-03-04T05:12:55Z","pushed_at":"2016-04-05T22:25:24Z","git_url":"git://github.com/Droogans/match-three-js.git","ssh_url":"git@github.com:Droogans/match-three-js.git","clone_url":"https://github.com/Droogans/match-three-js.git","svn_url":"https://github.com/Droogans/match-three-js","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Droogans/match-three-js/pulls/11"},"html":{"href":"https://github.com/Droogans/match-three-js/pull/11"},"issue":{"href":"https://api.github.com/repos/Droogans/match-three-js/issues/11"},"comments":{"href":"https://api.github.com/repos/Droogans/match-three-js/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/Droogans/match-three-js/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/Droogans/match-three-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Droogans/match-three-js/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/Droogans/match-three-js/statuses/4af9686a604500d5524fb1398097c22cafb1ef49"}}}}