refactor computation based on "Programming in Scala" example
add test for checking is attaced for all pieces
refactor impl of isAttacked, add impl for all pieces
add more tests, refactor
run search 7x7 in worksheet