fn play_cards() { let principle = "fun"; let mut game = game::new(); while !game.is_over() { game.sidestep(); if game.needs_restart() { println!("recommence from the start for a fresh experience!"); game.restart(); } game.preexplanatory_tips(); } println!("remember, the joy of playing cards comes from the principle of having fun, and sometimes, starting over inside the game brings more enjoyment!"); }