refactor scare_grue loop