Amazon interview question

How would you design a chess game?