 
   ###*
    * Adds a step to the tutorial system (in)
-   * @param {String} {id        An identification to give to that particular step
+   * @param {String} id        An identification to give to that particular step
    * @param {String} header      The header of the modal window if one exists
    * @param {String} content     The content of the modal window if one exists
    * @param {CSS Selector} tipselector The css selector to add a tip to
    * @param {String} tipmessage  The html to add to the tip if one exists
    * @param {String} tipheading  The html to add to the heading of the tip if one exists
    * @param {Boolean} modal       Do we want the window to be modal?
-   * @param {Boolean} tipnext}   Do we want a next button inside the tip?
-  ###
-  @addStep: ({id, header, content, tipselector, tipmessage, tipheading, modal, tipnext}) ->
-    index = @steps.push {id: id, header: header, content: content, tipselector: tipselector, tipmessage: tipmessage, tipheading: tipheading, modal: modal, tipnext: tipnext}
+   * @param {Boolean} tipnext   Do we want a next button inside the tip?
+   * @param {function} callback  A function that would be called when the step is executed.
+  ###
+  @addStep: ({id, header, content, tipselector, tipmessage, tipheading, modal, tipnext, callback}) ->
+    index = @steps.push {id: id, header: header, content: content, tipselector: tipselector, tipmessage: tipmessage, tipheading: tipheading, modal: modal, tipnext: tipnext, callback:callback}
     if id? then @stepIds[id] = index - 1
 
   ###*

    nextIndex = if stepId? then @stepIds[stepId] else @nextStepIndex
    theStep = @steps[nextIndex]
    if theStep?
      {id, header, content, tipselector, tipmessage, tipheading, tipnext, modal} = theStep
      if header? then @changeHeader(header)
      if content? then @changeContent(content)
      if tipselector? then @displayTip(tipselector, tipmessage, tipheading, tipnext)

      modal: false
      tipselector: '#sendgoal'
      tipmessage: 'Great, now click here to submit the goal and start the game.'
      callback: =>
        @addStep
          id: "game"
          modal: true
          header: "We're in!"
          content: "We've finally started playing the game. Let me now show you around."
        @doStepWhenScreen GameScreen, "game"

    @addStep
      modal: false
