Modified class to work without the random object from the Game class.
Modified class to work without the random object from the Game class.