Qualcomm interview question

design a chess game