S1, E9: Dipper, wishing he could go back in time and undo a mistake he made, discovers a time machine.