clean about chess change state code