change of random value and development of the game class