public static bool BelongsTo(this ChessPiece chessPiece, Player player) { return(player == Models.Player.White ? chessPiece.BelongsToWhite() : chessPiece.BelongsToBlack()); }