implemented pursue & chase action

also moved some stuff out to util.js
uhh... merge?
Merge branch 'master' of https://github.com/jackflips/chiller-z