Wrote subtask popping handling code

"Pop" will now populate subtask field until subtasks is empty, will go
to next task after subsequent "pop"