Refactoring. Created new tests.
New tests. Created Brain class.
Merge remote-tracking branch 'origin/master'