fix API setLastMove & setCheck