Update testscript.js

implements basic action-point system as well as turns