An implementation of the algorithmic 'K balls in N boxes' Game