Thoughtworks Interview Question

design the structure for chess game