updated Randomgames.java