A recursive simulation of the Josephus Problem