Implemented the game with random elements