Fixed bugs in findWhoGetsCastle.  Added tests.