Updating Josephus' problme