Fix nickel amount not being deducted, reorganise code.