cut barbarian code out and made new seperate js file for the barbarian calculations