Added Frightened movement to the Ghosts.
- Some refactoring in the code.