Fixed move encoding bugs; added general move execution