bug in finding who should get castle, added some tests
bump