Goal loop

Adds the repeat until the goal is reached block, may want to move into the loops category