made nOfPlaces static variable , some other changes