Rook control test added.
Implemented a test. Changed the old test to be more unitized. It was wrong
Test that proves capture by rook is not covered yet.
Implemented rookProtection of own pieces
Refactoring: simplified the code.
Applied simpler do/while loop that was first introduced in bishop movement.
Grouped very similar methods together.
Serious bug discovered by the integration test: we allow move to the rank that is controlled by a rook (probably a generic issue!)
Important comment added.
Implemented detection of squares where king will be attacked by the opponent's pieces in a robust way! It's a first time I used new position generation to detect moves allowance.
Important comment added.
Reused a convenient method to determine the squares occupied by our side.
Comments.
+2 tests for reassurance.
Merge pull request #71 from lrozenblyum/KingMovement

King movement - part5