My idea for the ghost was to run away blindly as far away as from the sound of their footsteps and go past them when they're far. I should've clarified this more. I knew spamming would be the strategy most would use but I didn't have time for a better solution. Thanks for the feedback!