What do you think these phrases from the poem mean?

(i) punished in the corner

(ii) leave their greens.

i) It means getting the punishment of standing in the corner of the classroom.

ii) It means that the children leave the playground after the bell rings and they have to rush for their classrooms.