modified random number generator in SnakesLadders.cpp