moved calculate to player class