Glad this has a digital implementation!
I found a bug with the 3-herd and a hole on level 48: From the start, press UDRRULUR. The herd should get stuck in the hole, but it can still move freely (except to the tile the shepherd was on, which seems to act like a wall).