Mice and maze problem