A discrete model of S1-homotopy theory