Cool idea. Also, you can cheese it, the farmer just keeps running against the barrier at the same position: