No need to leave so many times.
Recursvely looking for more kids in elixir version.
Using similar terminate/terminated pattern as elixir version.
Using command line params.
Only trying to claim students if they aren't at max.