{"action":"created","comment":{"url":"https://api.github.com/repos/Firechess/firechess/pulls/comments/53521044","id":53521044,"diff_hunk":"@@ -17,15 +17,77 @@ def move!(next_x, next_y)\n   private\n \n   def valid_move?(next_x, next_y)\n-    return false if is_obstructed?(next_x, next_y)\n+    return false if obstructed?(next_x, next_y)\n     return false if out_of_bounds?(next_x, next_y)\n     true\n   end\n \n+  def position_occupied?(next_x, next_y)","path":"app/models/chess_piece.rb","position":10,"original_position":10,"commit_id":"e010f7f93cdf2b8690edd55726fd8c2138954d69","original_commit_id":"e010f7f93cdf2b8690edd55726fd8c2138954d69","user":{"login":"lasley","id":7397578,"avatar_url":"https://avatars.githubusercontent.com/u/7397578?v=3","gravatar_id":"","url":"https://api.github.com/users/lasley","html_url":"https://github.com/lasley","followers_url":"https://api.github.com/users/lasley/followers","following_url":"https://api.github.com/users/lasley/following{/other_user}","gists_url":"https://api.github.com/users/lasley/gists{/gist_id}","starred_url":"https://api.github.com/users/lasley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasley/subscriptions","organizations_url":"https://api.github.com/users/lasley/orgs","repos_url":"https://api.github.com/users/lasley/repos","events_url":"https://api.github.com/users/lasley/events{/privacy}","received_events_url":"https://api.github.com/users/lasley/received_events","type":"User","site_admin":false},"body":"Where is the test for this?","created_at":"2016-02-19T21:30:46Z","updated_at":"2016-02-19T21:30:46Z","html_url":"https://github.com/Firechess/firechess/pull/15#discussion_r53521044","pull_request_url":"https://api.github.com/repos/Firechess/firechess/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/Firechess/firechess/pulls/comments/53521044"},"html":{"href":"https://github.com/Firechess/firechess/pull/15#discussion_r53521044"},"pull_request":{"href":"https://api.github.com/repos/Firechess/firechess/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/Firechess/firechess/pulls/15","id":58278148,"html_url":"https://github.com/Firechess/firechess/pull/15","diff_url":"https://github.com/Firechess/firechess/pull/15.diff","patch_url":"https://github.com/Firechess/firechess/pull/15.patch","issue_url":"https://api.github.com/repos/Firechess/firechess/issues/15","number":15,"state":"open","locked":false,"title":"Draw chesspieces","user":{"login":"aae1990","id":13366721,"avatar_url":"https://avatars.githubusercontent.com/u/13366721?v=3","gravatar_id":"","url":"https://api.github.com/users/aae1990","html_url":"https://github.com/aae1990","followers_url":"https://api.github.com/users/aae1990/followers","following_url":"https://api.github.com/users/aae1990/following{/other_user}","gists_url":"https://api.github.com/users/aae1990/gists{/gist_id}","starred_url":"https://api.github.com/users/aae1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aae1990/subscriptions","organizations_url":"https://api.github.com/users/aae1990/orgs","repos_url":"https://api.github.com/users/aae1990/repos","events_url":"https://api.github.com/users/aae1990/events{/privacy}","received_events_url":"https://api.github.com/users/aae1990/received_events","type":"User","site_admin":false},"body":"Populated the chessboard with actual chesspieces.","created_at":"2016-02-04T12:12:51Z","updated_at":"2016-02-19T21:30:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fabe918bd061b68242dffbc112ffbffee51e2e20","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Firechess/firechess/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Firechess/firechess/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Firechess/firechess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Firechess/firechess/issues/15/comments","statuses_url":"https://api.github.com/repos/Firechess/firechess/statuses/e010f7f93cdf2b8690edd55726fd8c2138954d69","head":{"label":"Firechess:draw_chesspieces","ref":"draw_chesspieces","sha":"e010f7f93cdf2b8690edd55726fd8c2138954d69","user":{"login":"Firechess","id":16727581,"avatar_url":"https://avatars.githubusercontent.com/u/16727581?v=3","gravatar_id":"","url":"https://api.github.com/users/Firechess","html_url":"https://github.com/Firechess","followers_url":"https://api.github.com/users/Firechess/followers","following_url":"https://api.github.com/users/Firechess/following{/other_user}","gists_url":"https://api.github.com/users/Firechess/gists{/gist_id}","starred_url":"https://api.github.com/users/Firechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firechess/subscriptions","organizations_url":"https://api.github.com/users/Firechess/orgs","repos_url":"https://api.github.com/users/Firechess/repos","events_url":"https://api.github.com/users/Firechess/events{/privacy}","received_events_url":"https://api.github.com/users/Firechess/received_events","type":"Organization","site_admin":false},"repo":{"id":49756309,"name":"firechess","full_name":"Firechess/firechess","owner":{"login":"Firechess","id":16727581,"avatar_url":"https://avatars.githubusercontent.com/u/16727581?v=3","gravatar_id":"","url":"https://api.github.com/users/Firechess","html_url":"https://github.com/Firechess","followers_url":"https://api.github.com/users/Firechess/followers","following_url":"https://api.github.com/users/Firechess/following{/other_user}","gists_url":"https://api.github.com/users/Firechess/gists{/gist_id}","starred_url":"https://api.github.com/users/Firechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firechess/subscriptions","organizations_url":"https://api.github.com/users/Firechess/orgs","repos_url":"https://api.github.com/users/Firechess/repos","events_url":"https://api.github.com/users/Firechess/events{/privacy}","received_events_url":"https://api.github.com/users/Firechess/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Firechess/firechess","description":"","fork":false,"url":"https://api.github.com/repos/Firechess/firechess","forks_url":"https://api.github.com/repos/Firechess/firechess/forks","keys_url":"https://api.github.com/repos/Firechess/firechess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Firechess/firechess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Firechess/firechess/teams","hooks_url":"https://api.github.com/repos/Firechess/firechess/hooks","issue_events_url":"https://api.github.com/repos/Firechess/firechess/issues/events{/number}","events_url":"https://api.github.com/repos/Firechess/firechess/events","assignees_url":"https://api.github.com/repos/Firechess/firechess/assignees{/user}","branches_url":"https://api.github.com/repos/Firechess/firechess/branches{/branch}","tags_url":"https://api.github.com/repos/Firechess/firechess/tags","blobs_url":"https://api.github.com/repos/Firechess/firechess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Firechess/firechess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Firechess/firechess/git/refs{/sha}","trees_url":"https://api.github.com/repos/Firechess/firechess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Firechess/firechess/statuses/{sha}","languages_url":"https://api.github.com/repos/Firechess/firechess/languages","stargazers_url":"https://api.github.com/repos/Firechess/firechess/stargazers","contributors_url":"https://api.github.com/repos/Firechess/firechess/contributors","subscribers_url":"https://api.github.com/repos/Firechess/firechess/subscribers","subscription_url":"https://api.github.com/repos/Firechess/firechess/subscription","commits_url":"https://api.github.com/repos/Firechess/firechess/commits{/sha}","git_commits_url":"https://api.github.com/repos/Firechess/firechess/git/commits{/sha}","comments_url":"https://api.github.com/repos/Firechess/firechess/comments{/number}","issue_comment_url":"https://api.github.com/repos/Firechess/firechess/issues/comments{/number}","contents_url":"https://api.github.com/repos/Firechess/firechess/contents/{+path}","compare_url":"https://api.github.com/repos/Firechess/firechess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Firechess/firechess/merges","archive_url":"https://api.github.com/repos/Firechess/firechess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Firechess/firechess/downloads","issues_url":"https://api.github.com/repos/Firechess/firechess/issues{/number}","pulls_url":"https://api.github.com/repos/Firechess/firechess/pulls{/number}","milestones_url":"https://api.github.com/repos/Firechess/firechess/milestones{/number}","notifications_url":"https://api.github.com/repos/Firechess/firechess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Firechess/firechess/labels{/name}","releases_url":"https://api.github.com/repos/Firechess/firechess/releases{/id}","deployments_url":"https://api.github.com/repos/Firechess/firechess/deployments","created_at":"2016-01-16T02:48:31Z","updated_at":"2016-01-16T02:48:57Z","pushed_at":"2016-02-19T18:57:19Z","git_url":"git://github.com/Firechess/firechess.git","ssh_url":"git@github.com:Firechess/firechess.git","clone_url":"https://github.com/Firechess/firechess.git","svn_url":"https://github.com/Firechess/firechess","homepage":null,"size":379,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Firechess:master","ref":"master","sha":"5609ebc1c44ca4621b4570d5b7d594aa5107a972","user":{"login":"Firechess","id":16727581,"avatar_url":"https://avatars.githubusercontent.com/u/16727581?v=3","gravatar_id":"","url":"https://api.github.com/users/Firechess","html_url":"https://github.com/Firechess","followers_url":"https://api.github.com/users/Firechess/followers","following_url":"https://api.github.com/users/Firechess/following{/other_user}","gists_url":"https://api.github.com/users/Firechess/gists{/gist_id}","starred_url":"https://api.github.com/users/Firechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firechess/subscriptions","organizations_url":"https://api.github.com/users/Firechess/orgs","repos_url":"https://api.github.com/users/Firechess/repos","events_url":"https://api.github.com/users/Firechess/events{/privacy}","received_events_url":"https://api.github.com/users/Firechess/received_events","type":"Organization","site_admin":false},"repo":{"id":49756309,"name":"firechess","full_name":"Firechess/firechess","owner":{"login":"Firechess","id":16727581,"avatar_url":"https://avatars.githubusercontent.com/u/16727581?v=3","gravatar_id":"","url":"https://api.github.com/users/Firechess","html_url":"https://github.com/Firechess","followers_url":"https://api.github.com/users/Firechess/followers","following_url":"https://api.github.com/users/Firechess/following{/other_user}","gists_url":"https://api.github.com/users/Firechess/gists{/gist_id}","starred_url":"https://api.github.com/users/Firechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firechess/subscriptions","organizations_url":"https://api.github.com/users/Firechess/orgs","repos_url":"https://api.github.com/users/Firechess/repos","events_url":"https://api.github.com/users/Firechess/events{/privacy}","received_events_url":"https://api.github.com/users/Firechess/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Firechess/firechess","description":"","fork":false,"url":"https://api.github.com/repos/Firechess/firechess","forks_url":"https://api.github.com/repos/Firechess/firechess/forks","keys_url":"https://api.github.com/repos/Firechess/firechess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Firechess/firechess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Firechess/firechess/teams","hooks_url":"https://api.github.com/repos/Firechess/firechess/hooks","issue_events_url":"https://api.github.com/repos/Firechess/firechess/issues/events{/number}","events_url":"https://api.github.com/repos/Firechess/firechess/events","assignees_url":"https://api.github.com/repos/Firechess/firechess/assignees{/user}","branches_url":"https://api.github.com/repos/Firechess/firechess/branches{/branch}","tags_url":"https://api.github.com/repos/Firechess/firechess/tags","blobs_url":"https://api.github.com/repos/Firechess/firechess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Firechess/firechess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Firechess/firechess/git/refs{/sha}","trees_url":"https://api.github.com/repos/Firechess/firechess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Firechess/firechess/statuses/{sha}","languages_url":"https://api.github.com/repos/Firechess/firechess/languages","stargazers_url":"https://api.github.com/repos/Firechess/firechess/stargazers","contributors_url":"https://api.github.com/repos/Firechess/firechess/contributors","subscribers_url":"https://api.github.com/repos/Firechess/firechess/subscribers","subscription_url":"https://api.github.com/repos/Firechess/firechess/subscription","commits_url":"https://api.github.com/repos/Firechess/firechess/commits{/sha}","git_commits_url":"https://api.github.com/repos/Firechess/firechess/git/commits{/sha}","comments_url":"https://api.github.com/repos/Firechess/firechess/comments{/number}","issue_comment_url":"https://api.github.com/repos/Firechess/firechess/issues/comments{/number}","contents_url":"https://api.github.com/repos/Firechess/firechess/contents/{+path}","compare_url":"https://api.github.com/repos/Firechess/firechess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Firechess/firechess/merges","archive_url":"https://api.github.com/repos/Firechess/firechess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Firechess/firechess/downloads","issues_url":"https://api.github.com/repos/Firechess/firechess/issues{/number}","pulls_url":"https://api.github.com/repos/Firechess/firechess/pulls{/number}","milestones_url":"https://api.github.com/repos/Firechess/firechess/milestones{/number}","notifications_url":"https://api.github.com/repos/Firechess/firechess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Firechess/firechess/labels{/name}","releases_url":"https://api.github.com/repos/Firechess/firechess/releases{/id}","deployments_url":"https://api.github.com/repos/Firechess/firechess/deployments","created_at":"2016-01-16T02:48:31Z","updated_at":"2016-01-16T02:48:57Z","pushed_at":"2016-02-19T18:57:19Z","git_url":"git://github.com/Firechess/firechess.git","ssh_url":"git@github.com:Firechess/firechess.git","clone_url":"https://github.com/Firechess/firechess.git","svn_url":"https://github.com/Firechess/firechess","homepage":null,"size":379,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Firechess/firechess/pulls/15"},"html":{"href":"https://github.com/Firechess/firechess/pull/15"},"issue":{"href":"https://api.github.com/repos/Firechess/firechess/issues/15"},"comments":{"href":"https://api.github.com/repos/Firechess/firechess/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Firechess/firechess/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Firechess/firechess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Firechess/firechess/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Firechess/firechess/statuses/e010f7f93cdf2b8690edd55726fd8c2138954d69"}}}}