Fix bug when building chess entities