{"action":"created","issue":{"url":"https://api.github.com/repos/MathMark/Tetris/issues/2","repository_url":"https://api.github.com/repos/MathMark/Tetris","labels_url":"https://api.github.com/repos/MathMark/Tetris/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/MathMark/Tetris/issues/2/comments","events_url":"https://api.github.com/repos/MathMark/Tetris/issues/2/events","html_url":"https://github.com/MathMark/Tetris/issues/2","id":131894637,"number":2,"title":"Some blocks out of the board","user":{"login":"MathMark","id":13971845,"avatar_url":"https://avatars.githubusercontent.com/u/13971845?v=3","gravatar_id":"","url":"https://api.github.com/users/MathMark","html_url":"https://github.com/MathMark","followers_url":"https://api.github.com/users/MathMark/followers","following_url":"https://api.github.com/users/MathMark/following{/other_user}","gists_url":"https://api.github.com/users/MathMark/gists{/gist_id}","starred_url":"https://api.github.com/users/MathMark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathMark/subscriptions","organizations_url":"https://api.github.com/users/MathMark/orgs","repos_url":"https://api.github.com/users/MathMark/repos","events_url":"https://api.github.com/users/MathMark/events{/privacy}","received_events_url":"https://api.github.com/users/MathMark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MathMark/Tetris/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-06T20:17:42Z","updated_at":"2016-02-13T20:23:48Z","closed_at":"2016-02-13T20:23:48Z","body":"![error](https://cloud.githubusercontent.com/assets/13971845/12869149/db6a856c-cd27-11e5-8956-5d74e2f88f0a.png)\r\n![7](https://cloud.githubusercontent.com/assets/13971845/12869153/f24aa0d2-cd27-11e5-962d-de8e4b62368e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/MathMark/Tetris/issues/comments/183747416","html_url":"https://github.com/MathMark/Tetris/issues/2#issuecomment-183747416","issue_url":"https://api.github.com/repos/MathMark/Tetris/issues/2","id":183747416,"user":{"login":"MathMark","id":13971845,"avatar_url":"https://avatars.githubusercontent.com/u/13971845?v=3","gravatar_id":"","url":"https://api.github.com/users/MathMark","html_url":"https://github.com/MathMark","followers_url":"https://api.github.com/users/MathMark/followers","following_url":"https://api.github.com/users/MathMark/following{/other_user}","gists_url":"https://api.github.com/users/MathMark/gists{/gist_id}","starred_url":"https://api.github.com/users/MathMark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathMark/subscriptions","organizations_url":"https://api.github.com/users/MathMark/orgs","repos_url":"https://api.github.com/users/MathMark/repos","events_url":"https://api.github.com/users/MathMark/events{/privacy}","received_events_url":"https://api.github.com/users/MathMark/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T20:23:48Z","updated_at":"2016-02-13T20:23:48Z","body":"This problem was solved by using new methods\r\n```\r\n\r\npublic void MoveToLeft()\r\n        {\r\n            for (int i = 0; i < skeleton.GetLength(0); i++)\r\n            {\r\n                for (int j = 0; j < skeleton.GetLength(1); j++)\r\n                {\r\n                    if (skeleton[i, j] == true)\r\n                    {\r\n                        if ((j-1 <0) || (skeleton[i, j-1] == false))\r\n                        {\r\n                            if (board.CheckExistence(new Point(i + d.Y, j-1 + d.X)) == true)\r\n                            {\r\n                                return;\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n            board.RelieveValue(d, skeleton);\r\n            d.X--;\r\n            board.SetValue(d, skeleton, color);\r\n        }\r\n        public void MoveToRight()\r\n        {\r\n            for (int i = 0; i < skeleton.GetLength(0); i++)\r\n            {\r\n                for (int j = skeleton.GetLength(1)-1; j >=0; j--)\r\n                {\r\n                    if (skeleton[i, j] == true)\r\n                    {\r\n                        if ((j + 1 > skeleton.GetLength(1) - 1) || (skeleton[i, j + 1] == false))\r\n                        {\r\n                            if (board.CheckExistence(new Point(i + d.Y, j + 1 + d.X)) == true)\r\n                            {\r\n                                return;\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n            board.RelieveValue(d, skeleton);\r\n            d.X++;\r\n            board.SetValue(d, skeleton, color);\r\n        }\r\n        public void MoveToDown()\r\n        {\r\n            for (int i = skeleton.GetLength(0) - 1; i >= 0; i--)\r\n            {\r\n                for (int j = 0; j < skeleton.GetLength(1); j++)\r\n                {\r\n                    if (skeleton[i, j] == true)\r\n                    {\r\n                        if ((i + 1 > skeleton.GetLength(0) - 1) || (skeleton[i + 1, j] == false))\r\n                        {\r\n                            if (board.CheckExistence(new Point(i + 1 + d.Y, j + d.X)) == true)\r\n                            {\r\n                                ArrivedAtBottom();\r\n                                return;\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n            board.RelieveValue(d,skeleton);\r\n            d.Y++;\r\n            board.SetValue(d, skeleton, color);\r\n        }\r\n```"}}