Thoughtworks interview question

design the structure for chess game