private function rollTimes(BowlingGame $bowlingGame, $pins, $times) { for ($i = 0; $i < $times; $i++) { $bowlingGame->roll($pins); } }