Updated chess validator to add piece factory