public void updateNode(float position)
 {
     if (currentDeath < position)
     {
         currentNode  = currentNode.next;
         currentDeath = 1000f;
     }
 }
    public void addInput(float x, float delta = 0.1f, float epsilon = 0.1f)
    {
        //Goes to the next input for mario and allocate a spot.
        currentNode.next = new AIBranch();
        currentNode      = currentNode.next;

        //Sets the values.
        currentNode.x       = x;
        currentNode.delta   = delta;
        currentNode.epsilon = epsilon;
    }
 public void reset()
 {
     currentNode = root;
 }
 public DataStorage()
 {
     root        = new AIBranch();
     currentNode = root;
 }