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