Rewrote evading movement pattern, cleans up the code and fixes bugs. Fixes #41.