Typescript Check Array Contains Sparkchess Multiplayer