Fixed countFriendFoe (it hasn't been working as it should)