Parse movement and battle codes