This is great!
One suggestion: allow the user to specify the number of entrances (as a positive, nonzero integer). Thanks!