{"action":"created","comment":{"url":"https://api.github.com/repos/tvleest/bejeweled/pulls/comments/42218023","id":42218023,"diff_hunk":"@@ -256,41 +258,90 @@ private boolean checkForCombinations(Gem gem) {\n \t\t}\n \t\treturn false;\n \t}\n+\t\n+\tpublic ArrayList<Combination> toCombinations(ArrayList<Gem> g) {\n+\t\tArrayList<Combination> res = new ArrayList<Combination>();\n+\t\tArrayList<Gem> blue = new ArrayList<Gem>();\n+\t\tArrayList<Gem> red = new ArrayList<Gem>();\n+\t\tArrayList<Gem> orange = new ArrayList<Gem>();\n+\t\tArrayList<Gem> yellow = new ArrayList<Gem>();\n+\t\tArrayList<Gem> pink = new ArrayList<Gem>();\n+\t\tArrayList<Gem> green = new ArrayList<Gem>();\n+\t\t\n+\t\tfor(int i = 0; i < g.size(); i++) {\n+\t\t\tif(g.get(i).type == GemType.BLUE) ","path":"src/bejeweled/board/Board.java","position":35,"original_position":35,"commit_id":"c3f168a15c569c0d2ed739c008589640b9b75a5d","original_commit_id":"c3f168a15c569c0d2ed739c008589640b9b75a5d","user":{"login":"tvleest","id":9801606,"avatar_url":"https://avatars.githubusercontent.com/u/9801606?v=3","gravatar_id":"","url":"https://api.github.com/users/tvleest","html_url":"https://github.com/tvleest","followers_url":"https://api.github.com/users/tvleest/followers","following_url":"https://api.github.com/users/tvleest/following{/other_user}","gists_url":"https://api.github.com/users/tvleest/gists{/gist_id}","starred_url":"https://api.github.com/users/tvleest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvleest/subscriptions","organizations_url":"https://api.github.com/users/tvleest/orgs","repos_url":"https://api.github.com/users/tvleest/repos","events_url":"https://api.github.com/users/tvleest/events{/privacy}","received_events_url":"https://api.github.com/users/tvleest/received_events","type":"User","site_admin":false},"body":"I think a switch would work better here.","created_at":"2015-10-16T08:09:01Z","updated_at":"2015-10-16T08:09:01Z","html_url":"https://github.com/tvleest/bejeweled/pull/49#discussion_r42218023","pull_request_url":"https://api.github.com/repos/tvleest/bejeweled/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/tvleest/bejeweled/pulls/comments/42218023"},"html":{"href":"https://github.com/tvleest/bejeweled/pull/49#discussion_r42218023"},"pull_request":{"href":"https://api.github.com/repos/tvleest/bejeweled/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/tvleest/bejeweled/pulls/49","id":47801875,"html_url":"https://github.com/tvleest/bejeweled/pull/49","diff_url":"https://github.com/tvleest/bejeweled/pull/49.diff","patch_url":"https://github.com/tvleest/bejeweled/pull/49.patch","issue_url":"https://api.github.com/repos/tvleest/bejeweled/issues/49","number":49,"state":"open","locked":false,"title":"Made a Combination class","user":{"login":"jzoon","id":9801377,"avatar_url":"https://avatars.githubusercontent.com/u/9801377?v=3","gravatar_id":"","url":"https://api.github.com/users/jzoon","html_url":"https://github.com/jzoon","followers_url":"https://api.github.com/users/jzoon/followers","following_url":"https://api.github.com/users/jzoon/following{/other_user}","gists_url":"https://api.github.com/users/jzoon/gists{/gist_id}","starred_url":"https://api.github.com/users/jzoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzoon/subscriptions","organizations_url":"https://api.github.com/users/jzoon/orgs","repos_url":"https://api.github.com/users/jzoon/repos","events_url":"https://api.github.com/users/jzoon/events{/privacy}","received_events_url":"https://api.github.com/users/jzoon/received_events","type":"User","site_admin":false},"body":"Tried to fix all bugs but im not sure if they are all fixed, at least\r\nmost of them seem to be working properly now","created_at":"2015-10-15T15:27:00Z","updated_at":"2015-10-16T08:09:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c587cc736d82ff0d720eb178dc2ebb258c50509d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tvleest/bejeweled/pulls/49/commits","review_comments_url":"https://api.github.com/repos/tvleest/bejeweled/pulls/49/comments","review_comment_url":"https://api.github.com/repos/tvleest/bejeweled/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tvleest/bejeweled/issues/49/comments","statuses_url":"https://api.github.com/repos/tvleest/bejeweled/statuses/c3f168a15c569c0d2ed739c008589640b9b75a5d","head":{"label":"tvleest:Combinationsfixed","ref":"Combinationsfixed","sha":"c3f168a15c569c0d2ed739c008589640b9b75a5d","user":{"login":"tvleest","id":9801606,"avatar_url":"https://avatars.githubusercontent.com/u/9801606?v=3","gravatar_id":"","url":"https://api.github.com/users/tvleest","html_url":"https://github.com/tvleest","followers_url":"https://api.github.com/users/tvleest/followers","following_url":"https://api.github.com/users/tvleest/following{/other_user}","gists_url":"https://api.github.com/users/tvleest/gists{/gist_id}","starred_url":"https://api.github.com/users/tvleest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvleest/subscriptions","organizations_url":"https://api.github.com/users/tvleest/orgs","repos_url":"https://api.github.com/users/tvleest/repos","events_url":"https://api.github.com/users/tvleest/events{/privacy}","received_events_url":"https://api.github.com/users/tvleest/received_events","type":"User","site_admin":false},"repo":{"id":41745441,"name":"bejeweled","full_name":"tvleest/bejeweled","owner":{"login":"tvleest","id":9801606,"avatar_url":"https://avatars.githubusercontent.com/u/9801606?v=3","gravatar_id":"","url":"https://api.github.com/users/tvleest","html_url":"https://github.com/tvleest","followers_url":"https://api.github.com/users/tvleest/followers","following_url":"https://api.github.com/users/tvleest/following{/other_user}","gists_url":"https://api.github.com/users/tvleest/gists{/gist_id}","starred_url":"https://api.github.com/users/tvleest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvleest/subscriptions","organizations_url":"https://api.github.com/users/tvleest/orgs","repos_url":"https://api.github.com/users/tvleest/repos","events_url":"https://api.github.com/users/tvleest/events{/privacy}","received_events_url":"https://api.github.com/users/tvleest/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tvleest/bejeweled","description":"","fork":false,"url":"https://api.github.com/repos/tvleest/bejeweled","forks_url":"https://api.github.com/repos/tvleest/bejeweled/forks","keys_url":"https://api.github.com/repos/tvleest/bejeweled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tvleest/bejeweled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tvleest/bejeweled/teams","hooks_url":"https://api.github.com/repos/tvleest/bejeweled/hooks","issue_events_url":"https://api.github.com/repos/tvleest/bejeweled/issues/events{/number}","events_url":"https://api.github.com/repos/tvleest/bejeweled/events","assignees_url":"https://api.github.com/repos/tvleest/bejeweled/assignees{/user}","branches_url":"https://api.github.com/repos/tvleest/bejeweled/branches{/branch}","tags_url":"https://api.github.com/repos/tvleest/bejeweled/tags","blobs_url":"https://api.github.com/repos/tvleest/bejeweled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tvleest/bejeweled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tvleest/bejeweled/git/refs{/sha}","trees_url":"https://api.github.com/repos/tvleest/bejeweled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tvleest/bejeweled/statuses/{sha}","languages_url":"https://api.github.com/repos/tvleest/bejeweled/languages","stargazers_url":"https://api.github.com/repos/tvleest/bejeweled/stargazers","contributors_url":"https://api.github.com/repos/tvleest/bejeweled/contributors","subscribers_url":"https://api.github.com/repos/tvleest/bejeweled/subscribers","subscription_url":"https://api.github.com/repos/tvleest/bejeweled/subscription","commits_url":"https://api.github.com/repos/tvleest/bejeweled/commits{/sha}","git_commits_url":"https://api.github.com/repos/tvleest/bejeweled/git/commits{/sha}","comments_url":"https://api.github.com/repos/tvleest/bejeweled/comments{/number}","issue_comment_url":"https://api.github.com/repos/tvleest/bejeweled/issues/comments{/number}","contents_url":"https://api.github.com/repos/tvleest/bejeweled/contents/{+path}","compare_url":"https://api.github.com/repos/tvleest/bejeweled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tvleest/bejeweled/merges","archive_url":"https://api.github.com/repos/tvleest/bejeweled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tvleest/bejeweled/downloads","issues_url":"https://api.github.com/repos/tvleest/bejeweled/issues{/number}","pulls_url":"https://api.github.com/repos/tvleest/bejeweled/pulls{/number}","milestones_url":"https://api.github.com/repos/tvleest/bejeweled/milestones{/number}","notifications_url":"https://api.github.com/repos/tvleest/bejeweled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tvleest/bejeweled/labels{/name}","releases_url":"https://api.github.com/repos/tvleest/bejeweled/releases{/id}","created_at":"2015-09-01T15:03:18Z","updated_at":"2015-09-17T14:48:05Z","pushed_at":"2015-10-15T21:59:22Z","git_url":"git://github.com/tvleest/bejeweled.git","ssh_url":"git@github.com:tvleest/bejeweled.git","clone_url":"https://github.com/tvleest/bejeweled.git","svn_url":"https://github.com/tvleest/bejeweled","homepage":null,"size":20926,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"tvleest:master","ref":"master","sha":"679c1fa89e74a5e152d7b4a127caa7e46593709b","user":{"login":"tvleest","id":9801606,"avatar_url":"https://avatars.githubusercontent.com/u/9801606?v=3","gravatar_id":"","url":"https://api.github.com/users/tvleest","html_url":"https://github.com/tvleest","followers_url":"https://api.github.com/users/tvleest/followers","following_url":"https://api.github.com/users/tvleest/following{/other_user}","gists_url":"https://api.github.com/users/tvleest/gists{/gist_id}","starred_url":"https://api.github.com/users/tvleest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvleest/subscriptions","organizations_url":"https://api.github.com/users/tvleest/orgs","repos_url":"https://api.github.com/users/tvleest/repos","events_url":"https://api.github.com/users/tvleest/events{/privacy}","received_events_url":"https://api.github.com/users/tvleest/received_events","type":"User","site_admin":false},"repo":{"id":41745441,"name":"bejeweled","full_name":"tvleest/bejeweled","owner":{"login":"tvleest","id":9801606,"avatar_url":"https://avatars.githubusercontent.com/u/9801606?v=3","gravatar_id":"","url":"https://api.github.com/users/tvleest","html_url":"https://github.com/tvleest","followers_url":"https://api.github.com/users/tvleest/followers","following_url":"https://api.github.com/users/tvleest/following{/other_user}","gists_url":"https://api.github.com/users/tvleest/gists{/gist_id}","starred_url":"https://api.github.com/users/tvleest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvleest/subscriptions","organizations_url":"https://api.github.com/users/tvleest/orgs","repos_url":"https://api.github.com/users/tvleest/repos","events_url":"https://api.github.com/users/tvleest/events{/privacy}","received_events_url":"https://api.github.com/users/tvleest/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tvleest/bejeweled","description":"","fork":false,"url":"https://api.github.com/repos/tvleest/bejeweled","forks_url":"https://api.github.com/repos/tvleest/bejeweled/forks","keys_url":"https://api.github.com/repos/tvleest/bejeweled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tvleest/bejeweled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tvleest/bejeweled/teams","hooks_url":"https://api.github.com/repos/tvleest/bejeweled/hooks","issue_events_url":"https://api.github.com/repos/tvleest/bejeweled/issues/events{/number}","events_url":"https://api.github.com/repos/tvleest/bejeweled/events","assignees_url":"https://api.github.com/repos/tvleest/bejeweled/assignees{/user}","branches_url":"https://api.github.com/repos/tvleest/bejeweled/branches{/branch}","tags_url":"https://api.github.com/repos/tvleest/bejeweled/tags","blobs_url":"https://api.github.com/repos/tvleest/bejeweled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tvleest/bejeweled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tvleest/bejeweled/git/refs{/sha}","trees_url":"https://api.github.com/repos/tvleest/bejeweled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tvleest/bejeweled/statuses/{sha}","languages_url":"https://api.github.com/repos/tvleest/bejeweled/languages","stargazers_url":"https://api.github.com/repos/tvleest/bejeweled/stargazers","contributors_url":"https://api.github.com/repos/tvleest/bejeweled/contributors","subscribers_url":"https://api.github.com/repos/tvleest/bejeweled/subscribers","subscription_url":"https://api.github.com/repos/tvleest/bejeweled/subscription","commits_url":"https://api.github.com/repos/tvleest/bejeweled/commits{/sha}","git_commits_url":"https://api.github.com/repos/tvleest/bejeweled/git/commits{/sha}","comments_url":"https://api.github.com/repos/tvleest/bejeweled/comments{/number}","issue_comment_url":"https://api.github.com/repos/tvleest/bejeweled/issues/comments{/number}","contents_url":"https://api.github.com/repos/tvleest/bejeweled/contents/{+path}","compare_url":"https://api.github.com/repos/tvleest/bejeweled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tvleest/bejeweled/merges","archive_url":"https://api.github.com/repos/tvleest/bejeweled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tvleest/bejeweled/downloads","issues_url":"https://api.github.com/repos/tvleest/bejeweled/issues{/number}","pulls_url":"https://api.github.com/repos/tvleest/bejeweled/pulls{/number}","milestones_url":"https://api.github.com/repos/tvleest/bejeweled/milestones{/number}","notifications_url":"https://api.github.com/repos/tvleest/bejeweled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tvleest/bejeweled/labels{/name}","releases_url":"https://api.github.com/repos/tvleest/bejeweled/releases{/id}","created_at":"2015-09-01T15:03:18Z","updated_at":"2015-09-17T14:48:05Z","pushed_at":"2015-10-15T21:59:22Z","git_url":"git://github.com/tvleest/bejeweled.git","ssh_url":"git@github.com:tvleest/bejeweled.git","clone_url":"https://github.com/tvleest/bejeweled.git","svn_url":"https://github.com/tvleest/bejeweled","homepage":null,"size":20926,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tvleest/bejeweled/pulls/49"},"html":{"href":"https://github.com/tvleest/bejeweled/pull/49"},"issue":{"href":"https://api.github.com/repos/tvleest/bejeweled/issues/49"},"comments":{"href":"https://api.github.com/repos/tvleest/bejeweled/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/tvleest/bejeweled/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/tvleest/bejeweled/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tvleest/bejeweled/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/tvleest/bejeweled/statuses/c3f168a15c569c0d2ed739c008589640b9b75a5d"}}}}