Made several corrections on logic. Barbarians functional.