Revised Structure of Nim Program