calculation of skill and stats