A chess validator