changed range to sum of player attributes