Update MAGE.js

implements basic action points and turns