changed numbPlayed to nump. added int tmp=nump