fix bug when passed a turn
change number of sample(100) to a variable