https://medium.com/@vitaliykorzenkoua/creating-chess-game-logic-with-typescript-a-step-by-step-guide-080b91955283