add test for pool, fix a problem with (unused) feature that pools from allies.
refactoring: use add_ally instead of manually crating the structure all over the code.