Implemented "frightened" and "returning" modes

Also implemented mode changes via timer.